import { Map } from 'immutable'

const initState = Map({
  test: 'test'
})

export default function Reducer(preState = initState, action) {
  const { type, data } = action
  switch (type) {
    case 'SET_TOKEN':
      return preState.set('token', data)
    default:
      return preState
  }
}
